package pers.cz.mapper;

import pers.cz.model.Postgirl;
import pers.cz.model.PostgirlExample;
import java.util.List;

import pers.cz.model.Role;
import org.apache.ibatis.annotations.Param;

public interface PostgirlMapper {
    int countByExample(PostgirlExample example);

    int deleteByExample(PostgirlExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(Postgirl record);

    int insertSelective(Postgirl record);

    List<Postgirl> selectByExample(PostgirlExample example);

    Postgirl selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") Postgirl record, @Param("example") PostgirlExample example);

    int updateByExample(@Param("record") Postgirl record, @Param("example") PostgirlExample example);

    int updateByPrimaryKeySelective(Postgirl record);

    int updateByPrimaryKey(Postgirl record);

    Postgirl loadUserByUsername(String userName);

    List<Role> selectRoleByUserId(Integer userId); // 一个用户存在多个角色

    List<Postgirl> queryAllUserDtl();

    Integer updatePasswordByUserId(Integer userId, String encode);
}
